
/**
 * 
 */
package com.itinsys.enma.domain;

import java.io.Serializable;


/**
 * @author pferraz
 *
 */
public class User implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String username;
	private String name;
	private String surname;
	private String email;
	private Role role;
	private boolean active;
	
	public User(){
		
	}
	public User(String userName, Role role){
		this.username=userName;
		this.role=role;
		this.active=true;
	}
	
	
	public String toString(){
		return "  Usuario: " + this.name + " " + this.surname + " " + this.email+"\n  Role: "+this.getRole().getDescription() ; 
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	
	
	
	
	
	
}
